package com.yaorange.module.system.service;

import com.yaorange.pojo.SysRole;

import java.util.List;

public interface SysRoleService {
    List<SysRole> findAll();

    SysRole findById(Long id);

    void save(SysRole sysRole);

    void update(Long id, SysRole roleDetails);

    void deleteById(Long id);

    List<Long> findPermissionsByRoleId(Long roleId);

    void grantPermission(List<Long> permissionIds, Long roleId);

    void deleteByIds(List<Long> roleIds);
}
